package com.ios.common.listener;

import java.util.HashMap;

import javax.servlet.ServletContextEvent;
import javax.servlet.ServletContextListener;

import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

public class DicLoadContextListener implements ServletContextListener {

	public void contextDestroyed(ServletContextEvent event) {

	}

	public void contextInitialized(ServletContextEvent event) {
		ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(event.getServletContext());
//		HashMap map = context.getBean(HashMap.class);
//		event.getServletContext().setAttribute("DIC", map);
	}

}
